Remove Session

72

clear session php -

<?php
   unset($_SESSION['counter']);
?>

php session destroy -

<?php
// Destroy the currently active session.
session_destroy();
?>

Remove Session -

Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Session.Abandon();
Session.Clear();

Comments

Submit
0 Comments